//
//  LGReceptionView.m
//  HeartDiseaseManage
//
//  Created by 1234 on 2023/3/22.
//  接诊、拒诊

#import "LGReceptionView.h"

@implementation LGReceptionView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor colorWithString:@"#EDEDED"];
        [self addSubview:self.receptBtn];
        [self addSubview:self.refuseBtn];
    }
    return self;
}


-(UIButton *)refuseBtn{
    if(!_refuseBtn){
        _refuseBtn = [UIButton buttonWithTitle:@"取消" titleFont:LGFontWeight(16, UIFontWeightMedium) textColor:@"#DD3030" imageName:@""];
        _refuseBtn.frame = CGRectMake(viewPix(47), viewPix(5), viewPix(128), viewPix(47));
        _refuseBtn.layer.borderColor = [UIColor colorWithString:@"#DD3030"].CGColor;
        _refuseBtn.layer.borderWidth = 1;
        _refuseBtn.cornerRidus = 10;
    }
    return _refuseBtn;
}

-(UIButton *)receptBtn{
    if(!_receptBtn){
        _receptBtn = [UIButton buttonWithTitle:@"开始咨询" titleFont:LGFontWeight(16, UIFontWeightMedium) textColor:@"#FFFFFF" imageName:@""];
        _receptBtn.frame = CGRectMake(Screen_W-viewPix(175), viewPix(5), viewPix(128), viewPix(47));
        _receptBtn.backgroundColor = [UIColor colorWithString:@"#429BFF"];
        _receptBtn.cornerRidus = 10;
    }
    return _receptBtn;
}
@end
